package com.negative.data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;

@SuppressWarnings("serial")
public class EventItem implements Serializable{

	private long id;
	private String name;
	private String location;
	private String description;
	private String picture;
	private String map;
	private String venue_picture;
	private long producer_id;
	private String status;
	private String status_description;
	private String is_suspended;
	private String sub_domain;
	private ArrayList<SubEventItem> subEvents;
	private boolean special = false;

	public EventItem (long id, String name, String location,
			String description, String picture, String map,
			String venue_picture, long producer_id, String status,
			String status_description, String is_suspended,	String sub_domain,
			ArrayList<SubEventItem> subEvents)
	{
		this.id = id;
		this.name = name; 
		this.location = location;
		this.description = description;
		this.picture = picture;
		this.map = map;
		this.venue_picture = venue_picture;
		this.producer_id = producer_id;
		this.status= status; 
		this.status_description = status_description;
		this.is_suspended = is_suspended;
		this.sub_domain = sub_domain;
		this.subEvents = subEvents;
	}

	public long getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public String getLocation() {
		return location;
	}

	public String getDescription() {
		return description;
	}

	public String getPicture() {
		return picture;
	}

	public String getMap() {
		return map;
	}

	public String getVenue_picture() {
		return venue_picture;
	}

	public long getProducer_id() {
		return producer_id;
	}

	public String getStatus() {
		return status;
	}

	public String getStatus_description() {
		return status_description;
	}

	public String getIs_suspended() {
		return is_suspended;
	}

	public String getSub_domain() {
		return sub_domain;
	}

	public ArrayList<SubEventItem> getSubEvents() {
		return subEvents;
	}

	public Date getStartDate() {
		return subEvents.get(0).getStart_time();
	}
	
	public Date getEndDate() {
		return subEvents.get(0).getEnd_time();
	}
	
	public void setIsSpecial(boolean isSpecial) {
		this.special = isSpecial;
	}
	
	public boolean isSpecial() {
		return this.special;
	}
}
